package com.AcheDc.api.controller;import com.AcheDc.api.common.utils.DataResult;import com.AcheDc.api.service.Test2Service;import io.swagger.annotations.Api;import io.swagger.annotations.ApiOperation;import org.springframework.beans.factory.annotation.Autowired;import org.springframework.web.bind.annotation.GetMapping;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RestController;/** * <p> *  前端控制器 * </p> * * @author AcheDc * @since 2022-01-17 */@Api(tags = "测试2接口")@RestController@RequestMapping("/test2")public class Test2Controller {    @Autowired    Test2Service testService;    @ApiOperation("测试2查找所有")    @GetMapping("/List")    public DataResult getList(){        return DataResult.success(testService.list());    }}